/*
 * HexPath.java
 *
 * Created on November 17, 2007, 2:47 PM
 *
 * Copyright (C) 2007-2008  Hylke van der Schaaf
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, in version 3 of the License.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */

package hextd.hex;

import hextd.util.Context;
import java.awt.Color;
import java.awt.Graphics2D;

/**
 *
 * @author hylke
 */
public class HexEmpty extends HexBase {
    protected Color fillColor;
    
    /**
     * Creates a new instance of HexPath
     */
    public HexEmpty(int x, int y, Context context) {
        super(x, y, context, false);
        this.borderColor = this.context.colors.getColorBaseEmptyHexBorder();
        this.fillColor = this.context.colors.getColorOpenBackGround();
        this.type = Hex.EMPTY;
        this.shortName = 'n';
    }
    
    public void paintBase(Graphics2D g2_0, Graphics2D g2_1) {
    }

    public void paintEffects(Graphics2D g2) {
        switch (this.highlight) {
            case placeTower:
                g2.setColor(this.highlightNOK);
                g2.fill(this.polyHex);
                this.paintRangeCircle(g2);
                break;
            case editHex:
                g2.setColor(this.highlightOK);
                g2.fill(this.polyHex);
                break;
            default:
        }
    }
    
}
